#ifndef __PCF8576_H__
#define __PCF8576_H__


#include "stm32f1xx_hal.h"


typedef unsigned char uint8;




typedef struct {
	uint8 slaveAddr;
	uint8 mode_set;
	uint8 load_data_pointer;
	uint8 device_select;
	uint8 bank_select;
	uint8 blink_select;
} PCF8576_INIT;



//extern void pcf8576_init(PCF8576_INIT init);
extern void pcf8576_drawPixel(I2C_HandleTypeDef* i2cn, PCF8576_INIT init, uint8 * buffer, uint8 seg, uint8 com, uint8 state);
extern void pcf8576_drawByte(I2C_HandleTypeDef* i2cn, PCF8576_INIT init, uint8 * buffer, uint8 index, uint8 value);





#endif //__PCF8576_H__
